package com.joseph.user.dto.request;

import com.joseph.common.validate.ValidationGroups;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class UserReq {

    @NotNull(message = "用户id不能为空", groups = {ValidationGroups.Update.class})
    private Integer id;
    /**
     * 登录账号
     */
    @NotBlank(message = "登录账号不能为空")
    private String username;

    /**
     * 登录密码
     */
    @NotBlank(message = "登录密码不能为空")
    private String password;
}
